package com.rongshu.view.userInfo.entity;

import java.io.Serializable;

public class MessageInfo implements Serializable {

    /**
     * ErrCode : 0
     * ErrMsg : 获取消息成功
     * Response : {"messageCount":2,"AtMyMsgCount":3,"privatechatCount":2}
     */

    private int ErrCode;
    private String ErrMsg;
    private ResponseBean Response;

    public int getErrCode() {
        return ErrCode;
    }

    public void setErrCode(int ErrCode) {
        this.ErrCode = ErrCode;
    }

    public String getErrMsg() {
        return ErrMsg;
    }

    public void setErrMsg(String ErrMsg) {
        this.ErrMsg = ErrMsg;
    }

    public ResponseBean getResponse() {
        return Response;
    }

    public void setResponse(ResponseBean Response) {
        this.Response = Response;
    }

    public static class ResponseBean implements Serializable {
        /**
         * messageCount : 2通知消息数
         * AtMyMsgCount : 3我的消息数
         * privatechatCount : 2私信消息数
         * likeCount 文章点赞消息数,
         * commentCount 文章评论消息数
         */

        private int messageCount;
        private int AtMyMsgCount;
        private int privatechatCount;
        private int likeCount;
        private int commentCount;

        public int getLikeCount() {
            return likeCount;
        }

        public void setLikeCount(int likeCount) {
            this.likeCount = likeCount;
        }

        public int getCommentCount() {
            return commentCount;
        }

        public void setCommentCount(int commentCount) {
            this.commentCount = commentCount;
        }

        public int getMessageCount() {
            return messageCount;
        }

        public void setMessageCount(int messageCount) {
            this.messageCount = messageCount;
        }

        public int getAtMyMsgCount() {
            return AtMyMsgCount;
        }

        public void setAtMyMsgCount(int AtMyMsgCount) {
            this.AtMyMsgCount = AtMyMsgCount;
        }

        public int getPrivatechatCount() {
            return privatechatCount;
        }

        public void setPrivatechatCount(int privatechatCount) {
            this.privatechatCount = privatechatCount;
        }

        public int getAllMsgCount() {
            return this.getMessageCount() + this.getAtMyMsgCount() + this.getPrivatechatCount() + this.getLikeCount() + this.getCommentCount();
        }
    }
}
